﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp7
{
    class WorkNpc:NPC
    {
        private string workInfo;
        public string WorkInfo
        {
            get { return WorkInfo; }
            set { WorkInfo = value; }
        }
        public WorkNpc(string name, npcType type, string workInfo) : base(name, type) {
            this.WorkInfo = workInfo;
        }
        public override void Speak()
        {
            Console.WriteLine("你能帮帮我吗？，我是{0}，{1},任务:{2}", this.Name, this.Type, this.workInfo);
        }

        
    }
}
